(mouse-split-window-vertically): Treat scroll bar events just like others.
authorRichard M. Stallman <rms@gnu.org>
Sun, 22 May 1994 20:56:11 +0000 (20:56 +0000)
committerRichard M. Stallman <rms@gnu.org>
Sun, 22 May 1994 20:56:11 +0000 (20:56 +0000)
lisp/mouse.el

index 2cceabab2f79a7862b1811791e745c0161fe010a..052d6ec01ba60223a00e034a0e738b91f2611240 100644 (file)
@@ -89,10 +89,7 @@ This command must be bound to a mouse click."
   (mouse-minibuffer-check click)
   (let ((start (event-start click)))
     (select-window (posn-window start))
-    (let ((new-height (if (eq (posn-point start) 'vertical-scroll-bar)
-                         (scroll-bar-scale (posn-col-row start)
-                                           (1- (window-height)))
-                       (1+ (cdr (posn-col-row (event-end click))))))
+    (let ((new-height (1+ (cdr (posn-col-row (event-end click)))))
          (first-line window-min-height)
          (last-line (- (window-height) window-min-height)))
       (if (< last-line first-line)